import request from '@/utils/request'

export const channel = () => {
    return request({
        url: '/v1_0/user/channels'
    })
}
export const channelsAll = () => {

    return request({
        url: '/v1_0/channels'
    })
}

export const addChannel = (data) => {
    return request({
        url: "/v1_0/user/channels",
        method: 'patch',
        data

    })
}
export const delChannel = (id) => {
    return request({
        url: '/v1_0/user/channels/' + id,
        method: 'delete'
    })
}